<div class="alpha omega">
	<div class="cleft">
<?php
$allItems = array();
$allItems = $this->allItems;
//die;

if (0 >= strlen($this->thanks))
{
	?>
<form name="registration" id="registration" action="/contactus" method="post">

	<div class="grid_2">
	</div>
	<div class="grid_7">
		<?php
	if(isset($allItems))
		foreach($allItems as $item)
		{
			if ('title' != $item->item)
			{
				continue;
			}
			echo 	$item->text;
		}
		?>
	</div>
	<div class="clear"></div>

	<div class="grid_2">
		<label for="name">Name <em class="required">*</em></label>
				<?php if(isset($this->aError['name'])) { foreach($this->aError['name'] as $ErrName => $ErrDescr) { ?>
				<div class="error_msg"><?php echo $ErrDescr; ?></div>
				<?php } } ?>
	</div>
	<div class="grid_7">
		<input 	id="name" type="text" class="text" name="name"	value="<?php echo $this->escape($this->name); ?>" />
	</div>

	<div class="clear"></div>

	<div class="grid_2">
		<label for="email">E-mail <em class="required">*</em></label>
				<?php if(isset($this->aError['email'])) { foreach($this->aError['email'] as $ErrName => $ErrDescr) { ?>
				<div class="error_msg"><?php echo $ErrDescr; ?></div>
				<?php } } ?>
	</div>
	<div class="grid_7">
		<input	id="email" type="text" class="text" name="email"	value="<?php echo $this->escape($this->email); ?>" />
	</div>

	<div class="clear"></div>


	<div class="grid_2">
		<label for="subject">Subject <em class="required">*</em></label>
				<?php if(isset($this->aError['subject'])) { foreach($this->aError['subject'] as $ErrName => $ErrDescr) { ?>
				<div class="error_msg"><?php echo $ErrDescr; ?></div>
				<?php } } ?>
	</div>
	<div class="grid_7">
		<input	id="subject" type="text" class="text" name="subject" value="<?php echo $this->escape($this->subject); ?>" />
	</div>

	<div class="clear"></div>


	<div class="grid_2">
		<label for="cm_message">Message <em class="required">*</em></label>
				<?php if(isset($this->aError['message'])) { foreach($this->aError['message'] as $ErrName => $ErrDescr) { ?>
				<div class="error_msg"><?php echo $ErrDescr; ?></div>
				<?php } } ?>
	</div>
	<div class="grid_7">
		<textarea	id="message" name="message" cols="50" rows="8"><?php echo $this->escape($this->message); ?></textarea>
	</div>


	<div class="clear"></div>

	<div class="grid_2">
	</div>
	<div class="grid_7">
		<input type="submit" class="sexybutton sexysimple sexyblue submit" value="Send Message" />
	</div>

	<div class="clear"></div>
	<div class="grid_2">
	</div>
	<div class="grid_7">
		<?php
		
	if(isset($allItems))		
		foreach($allItems as $item)
		{
			if ('content' != $item->item)
			{
				continue;
			}
			echo 	$item->text;
		}
		?>
	</div>
</form>
	<?php
}
else
{
	echo $this->thanks;
}
?>
	</div>
</div>



<?php /*


<?php if (isset($this->allItems)){?>
<form action="/adminarea/contentedit/page/<?php echo $this->needPage;  ?>/item/<?php echo $this->needItem; ?>" method="post">

	<?php foreach ($this->allItems as $item) { if ('title' != $item->item) continue?>
		<h1><?php echo $this->escape($item->text); ?></h1>
	<?php }?>
<p>
	<?php foreach ($this->allItems as $item) { if ('title' == $item->item) continue?>
		<?php echo $item->text; ?>
	<?php }?>
</p>
<?php }?>


*/ ?>